package com.ruiysoft.entity.integralmdse;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2019-04-27
 */
@TableName("merchandise_sku_m_p_rela")
public class MerchandiseSkuMPRela extends Model<MerchandiseSkuMPRela> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("sku_id")
    private Long skuId;

    @TableField("shop_id")
    private Long shopId;

    /**
     * 会员等级
     */
    @TableField("member_level")
    private Integer memberLevel;

    /**
     * 积分
     */
    private Long integral;

    /**
     * 价格（不通type不通意思，也代表积分的价值）
     */
    private Long price;

    /**
     * 类型（1，纯现金或纯积分，2，固定现金+固定积分，3，积分抵现金）
     */
    private Integer type;

    public Long getId() {
        return id;
    }

    public MerchandiseSkuMPRela setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getSkuId() {
        return skuId;
    }

    public MerchandiseSkuMPRela setSkuId(Long skuId) {
        this.skuId = skuId;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public MerchandiseSkuMPRela setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public Integer getMemberLevel() {
        return memberLevel;
    }

    public MerchandiseSkuMPRela setMemberLevel(Integer memberLevel) {
        this.memberLevel = memberLevel;
        return this;
    }
    public Long getIntegral() {
        return integral;
    }

    public MerchandiseSkuMPRela setIntegral(Long integral) {
        this.integral = integral;
        return this;
    }
    public Long getPrice() {
        return price;
    }

    public MerchandiseSkuMPRela setPrice(Long price) {
        this.price = price;
        return this;
    }
    public Integer getType() {
        return type;
    }

    public MerchandiseSkuMPRela setType(Integer type) {
        this.type = type;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MerchandiseSkuMPRela{" +
        "id=" + id +
        ", skuId=" + skuId +
        ", shopId=" + shopId +
        ", memberLevel=" + memberLevel +
        ", integral=" + integral +
        ", price=" + price +
        ", type=" + type +
        "}";
    }
}
